import 'package:fish_redux/fish_redux.dart';
import '../../../app_files.dart';

class PatrolListModel {
  List items;
  int currentPage = 1;
  EasyRefreshController refreshController = EasyRefreshController();
}

class PatrolOrderListViewState implements Cloneable<PatrolOrderListViewState> {
  String title;
  String areaID;
  String planID;
  int checkStatus = 1;
  Map<String, PatrolListModel> listModels = Map();
  GlobalKey scaffoldKey = GlobalKey();

  @override
  PatrolOrderListViewState clone() {
    return PatrolOrderListViewState()
      ..areaID = areaID
      ..title = title
      ..checkStatus = checkStatus
      ..listModels = listModels
      ..scaffoldKey = scaffoldKey
      ..planID = planID;
  }
}

PatrolOrderListViewState initState(Map<String, dynamic> args) {
  return PatrolOrderListViewState()
    ..areaID = args['areaID']
    ..planID = args['planID']
    ..title = args['title'];
}
